home *** CD-ROM | disk | FTP | other *** search
- package koala.dynamicjava.tree;
-
- import koala.dynamicjava.tree.visitor.Visitor;
-
- public abstract class Literal extends PrimaryExpression {
- public static final String REPRESENTATION = "representation";
- public static final String VALUE = "value";
- public static final String TYPE = "type";
- private String representation;
- private Object value;
- private Class type;
-
- public String getRepresentation() {
- return this.representation;
- }
-
- public void setRepresentation(String var1) {
- if (var1 == null) {
- throw new IllegalArgumentException("s == null");
- } else {
- ((Node)this).firePropertyChange("representation", this.representation, this.representation = var1);
- }
- }
-
- public Object getValue() {
- return this.value;
- }
-
- public void setValue(Object var1) {
- ((Node)this).firePropertyChange("value", this.value, this.value = var1);
- }
-
- public Class getType() {
- return this.type;
- }
-
- public void setType(Class var1) {
- ((Node)this).firePropertyChange("type", this.type, this.type = var1);
- }
-
- public Object acceptVisitor(Visitor var1) {
- return var1.visit(this);
- }
-
- protected Literal(String var1, Object var2, Class var3, String var4, int var5, int var6, int var7, int var8) {
- super(var4, var5, var6, var7, var8);
- if (var1 == null) {
- throw new IllegalArgumentException("rep == null");
- } else {
- this.representation = var1;
- this.value = var2;
- this.type = var3;
- }
- }
- }
-